﻿using IceTodo.DataStore.Enums;
using NHibernate.Mapping.Attributes;
using NHibernate.Type;

namespace IceZero.DataStore.Models
{
    [Class(Table = "IceZero_TodoLabel")]//定义数据库表名
    public class TodoLabel:ModelBase
    {
        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "Name", TypeType = typeof(string),Length = 100)]
        public virtual string Name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "LabelType", TypeType = typeof(EnumStringType<LabelType>))]
        public virtual LabelType LabelType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "Remark", TypeType = typeof(string))]
        public virtual string Remark { get; set; }
    }
}